import App from './App'
import api from './api/api.js'
import store from './store'; // 引入 Vuex
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$api = api
const app = new Vue({
	store, // 挂载 Vuex store
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.mixin(share)
	app.config.globalProperties.$api = api
	// 挂载 Vuex
	app.use(store);
	return {
		app
	}
}
// #endif